package routes

import (
	"github.com/gin-gonic/gin"
	"jjqzplucky.site/sz-core/internal/controllers"
)

func RegisterMedicalDeptRoutes(r *gin.Engine) {
	//鉴权控制器
	dept := controllers.MedicalDeptController{}

	d := r.Group("/medical/dept")
	{
		d.GET("/getDeptTree", dept.GetDeptTree)
		d.POST("/create", dept.Create)
		d.GET("/page", dept.Page)
		d.GET("/list", dept.List)
		d.POST("/delete/:id", dept.Delete)
		d.POST("/update", dept.Update)
	}
}
